<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2016 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
use think\Route;
Route::get('xiaoqu_<area>_<type>_<year>_<sort>','Xiaoqu/index',[],['area'=>'\d+','type'=>'\d+','year'=>'\d+','sort'=>'\d+']);
Route::get('chuzu_<area>_<price>_<mianji>_<room>_<usertype>_<sort>','Chuzu/index',[],['area'=>'\d+','price'=>'\d+','mianji'=>'\d+','room'=>'\d+','usertype'=>'\d+','sort'=>'\d+']);
Route::get('esf_<sort>_<price>_<mianji>_<chao>_<room>_<area>','Second/index',[],['sort'=>'\d+','price'=>'\d+','mianji'=>'\d+','chao'=>'\d+','room'=>'\d+','area'=>'\d+']);
Route::get('loupan_<sort>_<area>_<tags>_<room>_<type>_<renovation>_<price>_<group>','Loupan/index',[],['sort'=>'\d+','area'=>'\d+','tags'=>'\d+','room'=>'\d+','type'=>'\d+','renovation'=>'\d+','price'=>'\d+','group'=>'\d+']);
Route::get('huxing_<area>_<price>_<room>_<renovation>_<sort>','Loupan/huxing',[],['area'=>'\d+','price'=>'\d+','room'=>'\d+','renovation'=>'\d+','sort'=>'\d+']);
Route::get('loupan/info_<house_id>','Loupan/info',[],['house_id'=>'\d+']);
Route::get('loupan/peitao_<house_id>','Loupan/peitao',[],['house_id'=>'\d+']);
Route::get('loupan/typelist_<type_id>_<house_id>','Loupan/type',[],['type_id'=>'\d+','house_id'=>'\d+']);
Route::get('loupan/typelist_<house_id>','Loupan/type',[],['house_id'=>'\d+']);
Route::get('loupan/type_<house_id>_<id>','Loupan/typeShow',[],['house_id'=>'\d+','id'=>'\d+']);
Route::get('loupan/pic_<cate>_<house_id>','Loupan/pic',[],['cate'=>'\d+','house_id'=>'\d+']);
Route::get('loupan/pic_<house_id>','Loupan/pic',[],['house_id'=>'\d+']);
Route::get('loupan/news_<cate>_<house_id>','Loupan/news',[],['cate'=>'\d+','house_id'=>'\d+']);
Route::get('loupan/news_<house_id>','Loupan/news',[],['house_id'=>'\d+']);
Route::get('loupan/price_<house_id>','Loupan/price',[],['house_id'=>'\d+']);
Route::get('loupan/question_<house_id>','Loupan/question',[],['house_id'=>'\d+']);
Route::get('loupan/<id>','Loupan/detail',[],['id'=>'\d+']);
Route::get('loupan_ajax','Loupan/getAjaxLists');
Route::get('huxing','Loupan/huxing');
Route::get('loupan','Loupan/index');
Route::get('esf/<id>','Second/detail',[],['id'=>'\d+']);
Route::get('esf_ajax','Second/getAjaxLists');
Route::get('esf','Second/index');
Route::get('chuzu/<id>','Chuzu/detail',[],['id'=>'\d+']);
Route::get('chuzu_ajax','Chuzu/getAjaxLists');
Route::get('chuzu','Chuzu/index');
Route::get('xiaoqu/pic_<id>','Xiaoqu/pic',[],['id'=>'\d+']);
Route::get('xiaoqu/info_<id>','Xiaoqu/info',[],['id'=>'\d+']);
Route::get('xiaoqu/esf_<id>','Xiaoqu/used',[],['id'=>'\d+']);
Route::get('xiaoqu/chuzu_<id>','Xiaoqu/rental',[],['id'=>'\d+']);
Route::get('xiaoqu/<id>','Xiaoqu/detail',[],['id'=>'\d+']);
Route::get('xiaoqu_ajax','Xiaoqu/getAjaxLists');
Route::get('xiaoqu','Xiaoqu/index');
Route::get('tuangou_<timeout>_<city>','Tuangou/index',[],['timeout'=>'\d+','city'=>'\d+']);
Route::get('tuangou/<id>','Tuangou/detail',[],['id'=>'\d+']);
Route::get('tuangou','Tuangou/index');
Route::get('huodong_<cate_id>','Huodong/index',[],['cate_id'=>'\d+']);
Route::get('huodong/<id>','huodong/detail',[],['id'=>'\d+']);
Route::get('huodong','Huodong/index');
Route::get('question/lists_<cate_id>','Question/lists',[],['cate_id'=>'\d+']);
Route::get('question/<id>','Question/detail',[],['id'=>'\d+']);
Route::get('question/add','Question/add');
Route::get('question/lists','Question/lists');
Route::get('question/problem','Question/problem');
Route::get('question/answer','Question/answer');
Route::get('question','Question/index');
Route::get('news/lists_<cate_id>','News/lists',[],['cate_id'=>'\d+']);
Route::get('news/<id>','News/detail',[],['id'=>'\d+']);
Route::get('news/lists','News/lists');
Route::get('news','News/index');
Route::get('pages/<cate>','Pages/detail',[],['cate'=>'\w+']);
Route::get('map/<house_id>_<type>','Map/index',[],['house_id'=>'\d+','type'=>'\w+']);
Route::get('map/<type>','Map/index',[],['type'=>'\w+']);
Route::get('map/loupan','Map/getHouseList');
Route::get('map/getarea','Map/ajaxGetArea');
Route::get('map/second','Map/getSecondList');
Route::get('map/chuzu','Map/getRentalList');
Route::get('map','Map/index');
Route::get('/','Index/index');
return [
    '__pattern__' => [
        'id' => '\d+',
    ],
    '__domain__'=>[
        'admin'     => 'manage',
        'm'         => 'mobile',
        '*'         => 'home',
        '*.m'       => 'mobile'
    ],

];
